﻿namespace FinalPointSet.Model.Model
{
    /// <summary>
    /// 单例基类
    /// </summary>
    /// <typeparam name="T">类型</typeparam>
    public abstract class SingletonBase<T> where T : SingletonBase<T>, new()
    {
        private static T? instance;

        public static T Instance
        {
            get
            {
                instance ??= new T();
                return instance;
            }
        }
    }
}
